<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper>
	<jsp:attribute name="title">
		<spring:message code="period.new.title" />
	</jsp:attribute>
	<jsp:body>
		<div id="navigation">
			<a href="javascript:history.back()" >&laquo; <spring:message code="content.general.back" /></a>
		</div>
	
	<label><spring:message code="course.manage.startdate" /></label>
    <input type="text" name="startdate" value="${period.start}" />
		
			
	<label><spring:message code="course.manage.enddate" /></label>
	<input type="text" name="enddate" value="${period.end}" />
		
	<button type="submit">
	<spring:message code="course.manage.submit" />
	</button> 
	
	<label><spring:message code="period.select.course" /></label>
		<select name="course">
			<c:forEach items="${course}" var="course">
				<option value="${course.id}" <c:if test="${course.id == course.period.id}"> selected="selected" </c:if>>${course.name}</option>
			</c:forEach>		
		</select>	
						
	</jsp:body>
</t:wrapper>